package com.bayss.core.entity.user;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Date;
import java.util.Map;

public class WxUser {
	private String openId;
	@JsonIgnore
	private String unionId;
	@JsonIgnore
	private Date createTime;
	private Date lastVisitTime;
	@JsonIgnore
	private String sessionKey;
	private int userId = -1;
	
	private int isContact;
	
	
	private int newFlag;
	

	public int getNewFlag() {
		return newFlag;
	}

	public void setNewFlag(int newFlag) {
		this.newFlag = newFlag;
	}

	/**
	 * @return the isContact
	 */
	public int getIsContact() {
		return isContact;
	}

	/**
	 * @param isContact the isContact to set
	 */
	public void setIsContact(int isContact) {
		this.isContact = isContact;
	}

	public WxUser() {
		super();
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastVisitTime() {
		return lastVisitTime;
	}

	public void setLastVisitTime(Date lastVisitTime) {
		this.lastVisitTime = lastVisitTime;
	}

	public String getSessionKey() {
		return sessionKey;
	}

	public void setSessionKey(String sessionKey) {
		this.sessionKey = sessionKey;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "WxUser [openId=" + openId + ", unionId=" + unionId + ", createTime=" + createTime + ", lastVisitTime="
				+ lastVisitTime + ", sessionKey=" + sessionKey + ", userId=" + userId + "]";
	}
}
